#include "bsp_uart.h"
#include "task.h"
#include "bsp_bootloader.h"
#include "bsp_wdt.h"


uint32_t read_vdat = 0;//读取到的数据
uint32_t read_idat = 0;//读取到的数据
uint8_t reaf_flag = 0;
uint8_t addr = 1;

uint32_t con = 0,i,j;
int main(void)
{
//	SCB->VTOR = 0x00005000;
	bsp_uart1_init(9600);	
	while(1)
	{
		uart_task();
		if(uart1.flag ==1)
		{
			uart1.flag = 0;
			iap_write_update_flag(update_iap);
			Wdt_config();
		}
		for(i=0;i<2000000;i++);
	}
}
